@IsTest private class DiscussionMembersWidgetTest {
    public static testMethod void testTeam() {
        try{ 
            
            GenerateEnvironmentTest.gen();
            Test.startTest();            
            System.currentPageReference().getParameters().put('id', GenerateEnvironmentTest.newDiscussionForum.Id);       
            DiscussionMembersWidgetController team = new DiscussionMembersWidgetController();
            String curUser = team.getCurrentUser(); 
            
            team.getNamespace();
            DiscussionForum__c t = GenerateEnvironmentTest.newDiscussionForum;
            String result = team.getComponentHeader ();
            result = team.getComponentHeader ();
            Boolean render = team.getRenderLinkAction ();
            team.getDiscussion();
            team.getDiscussionId();
            
            DiscussionMembersWidgetController.Member member = new DiscussionMembersWidgetController.Member();
            team.getNewMemberVars();

            List<User> users = new User[3];
            users[0] = GenerateEnvironmentTest.newUser;
            users[1] = GenerateEnvironmentTest.newUser;
            users[2] = GenerateEnvironmentTest.newUser;

            member.setColleagueNames( users[0].Name + ',' + users[1].Name + ',' + users[2].Name );            
            
            team.setNewMemberVars(member);
            
            
            List<SelectOption> options = team.getProfilesOptions();
            List<DiscussionMember__c> members = team.getMemberListToolkit();
            Integer cnt = team.getMemberListToolkitCount();
            
            team.saveMembers();            
            
            team.syncSaveMembers();
            User user = [select Name, Email from User limit 1];
            team.SendMail(user, 'Message');


			team.setEmailNotifications( true );
			team.getEmailNotifications();
			team.setIsAdministrator( true );
			team.getIsAdministrator();
			team.getShowWidget();
			team.setShowWidget( true );
			team.getIsTeamAdmin();
			team.getMembers();
			team.getDiscussionspaceMembersIds();
			team.assignNewMemberVarsNewProfile();
			team.getAlready();
			team.getUserPermissions();
			team.refreshMethod();
			
			member.getColleagueNames();
			member.getMessage();
			member.setMessage( 'aaaaaaaaaaaa' );
			member.getProfileId();
			member.setProfileId( 'Public Profile' );
			
            Test.stopTest();
        }catch(Exception e){
            throw e;
        }
    }
}